home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go Ronald
/
Go Ronald Voice Interactive CD.iso
/
Data1.cab
/
_8D088414393A4AB0BB2239714C0C0C0B
/
scripts
/
frame_26
/
DoAction.as
Wrap
Text File
|
2005-08-05
|
2KB
|
66 lines
stop();
GoStraight._visible = true;
var length_arr = new Array(0,6,4,12,4,4,12,6,8);
var Direction_Arr = new Array("A","Right","Left","Right","Left","Right","Left","Right","Right");
var ArrayLength = 0;
var ArrayFileName;
var ArrayDirection;
var hasClicked;
userScore = 0;
TurnRightSign._visible = false;
TurnLeftSign._visible = false;
turnLeft_mc._visible = false;
turnRight_mc._visible = false;
activityLevel_pb._visible = false;
GoStraight._visible = true;
x++;
Timer._visible = true;
if(x < length_arr.length)
{
ArrayFileName = "SWFs/Curve" + x + ".swf";
ArrayLength = length_arr[x];
ArrayDirection = Direction_Arr[x];
}
else if(x = length_arr.length)
{
ArrayLength = 10;
ArrayFileName = "SWFs/finish_approach.swf";
ArrayDirection = "noTurn";
gotoAndStop("Turn");
play();
}
turnRight_mc.onRollOver = function()
{
turnSound.stop();
turnSound.start();
};
turnRight_mc.onRelease = function()
{
userScore = GoStraight.turnScore;
this.gotoAndPlay("init");
this.rightGreenBeep_snd.setVolume(0);
this.rightGreenBeep_snd.stop();
delete this.rightGreenBeep_snd;
this._visible = false;
hasClicked = true;
GoStraight.killitall();
mApplication.trace("hasclicked righjtbtn : " + hasClicked);
};
turnLeft_mc.onRollOver = function()
{
turnSound.stop();
turnSound.start();
};
turnLeft_mc.onRelease = function()
{
userScore = GoStraight.turnScore;
this.gotoAndPlay("init");
this.leftGreenBeep_snd.setVolume(0);
this.leftGreenBeep_snd.stop();
delete this.leftGreenBeep_snd;
this._visible = false;
hasClicked = true;
mApplication.trace("hasclicked righjtbtn : " + hasClicked);
GoStraight.killitall();
};